//
//  BaseTabBarController.h
//  worthVote
//
//  Created by kingboyrang on 2021/4/12.
//  Copyright © 2021 wulanzhou. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BarItemModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BaseTabBarController : UITabBarController

/** 数据源 */
@property (nonatomic,strong) NSArray<BarItemModel *> *items;

/**
*  设置TabBar背景颜色
*  @param backgroudColor 背景颜色
*/
- (void)setTabBarBackGroundColor:(UIColor *)backgroudColor;

/**
 *  设置选中tabItem项
 *
 *  @param index index : Tab索引
 */
- (void)selectedItemTabBarIndex:(NSInteger)index;


//显示微章
- (void)showBadgeValue:(NSString*)badgeValue index:(NSInteger)index;

/**
 *  移除微章
 *
 *  @param index : Tab索引
 */
- (void)removeBadgeValueWithIndex:(NSInteger)index;

/**
 *  移除红点
 *
 *  @param index index : Tab索引
 */
- (void)removeBadgeWithIndex:(NSInteger)index;

/**
 *  显示红点
 *
 *  @param index index : Tab索引
 */
- (void)showBadgeWithIndex:(NSInteger)index;

/**隐藏TabBar*/
- (void)hideTabBar;
/**显示TabBar*/
- (void)showTabBar;

@end

NS_ASSUME_NONNULL_END
